use crisesandleaders

* The next set of lines perform the Heckman analysis for internal removal
* given that the country wins the crisis.  This is the first column of Table
* 9.8.  It also generates and list the probabilities in the first column of
* Table 9.9.

heckprob  internalleaderchange W effectiveS violent largeWviolent largeWviolentSQ smallWterritory if monarch == 0 & outcome ~=7, select(win =  W oppW effectiveS effectiveoppS powerratio) cluster(midnum)
use probgenerate, clear
predict winprob
list

* The next set of lines perform the Heckman analysis for internal removal
* given that the country draws the crisis.  This is the second column of Table
* 9.8.  It also generates and list the probabilities in the second column of
* Table 9.9.

use crisesandleaders, clear
heckprob  internalleaderchange W effectiveS violent largeWviolent largeWviolentSQ smallWterritory if monarch == 0 & outcome ~=7, select(draw =  W oppW effectiveS effectiveoppS powerratio) cluster(midnum)
use probgenerate, clear
predict drawprob
list

* The next set of lines perform the Heckman analysis for internal removal
* given that the country loses the crisis.  This is the third column of Table
* 9.8.  It also generates and list the probabilities in the third column of
* Table 9.9.

use crisesandleaders, clear
heckprob  internalleaderchange W effectiveS violent largeWviolent largeWviolentSQ smallWterritory if monarch == 0 & outcome ~=7, select(lose =  W oppW effectiveS effectiveoppS powerratio) cluster(midnum)
use probgenerate, clear
predict loseprob
list

* The next set of lines perform the Heckman analysis for external removal
* given that the country loses the crisis.  This is Table 9.10.
* It also generates and lists the probabilities of external removal discussede first column of
* on p. 450.

use crisesandleaders, clear
heckprob externalleaderchange W oppW if outcome ~= 7, select (lose = W  effectiveS oppW effectiveoppS powerratio oppviolent) cluster(midnum)
use probgenerate, clear
predict overthrowprob
list

clear
